package at.ac.tuwien.swa.sparrow.peer.component

import ac.at.tuwien.infosys.swa.audio.FingerprintSystem
import javax.sound.sampled.AudioSystem
import scala.reflect.io.File
import org.springframework.stereotype.Component

@Component
class AudioFingerprintFunction {

	@inline def apply(f: File) = FingerprintSystem fingerprint (AudioSystem getAudioInputStream f.jfile)

}
